package top.lingkang.potatoserver.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import top.lingkang.potatoserver.entity.User;

/**
 * @author lingkang
 * @date 2021/9/19 0:46
 * @description
 */
public interface UserMapper {
    int insertSelective(User record);

    int updateByPrimaryKeySelective(User record);

    // @Select("select * from p_user where username=#{username}")
    User get(@Param("username") String username);

    User getById(@Param("id") Integer id);
}